package cn.itsource.pethome.org.mapper;

import cn.itsource.pethome.basic.mapper.BaseMapper;
import cn.itsource.pethome.org.domain.Department;

import java.util.List;

public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * 查询一二级部门
     * @return
     */
    List<Department> findOneAnd2level();

    /**
     * 根据parentid查询部门
     * @param id
     * @return
     */
    List<Department> findByParentId(Long id);
}
